package lumingweihua.future.cn.lumingweihua.home.cheyuan;

import java.util.Calendar;

import android.app.DatePickerDialog;
import android.app.Dialog;
import android.view.View;
import android.widget.DatePicker;

import lumingweihua.future.cn.baselibgxh.base.BaseActivity;
import lumingweihua.future.cn.baselibgxh.utils.CommonUtils;
import lumingweihua.future.cn.baselibgxh.utils.Constant;
import lumingweihua.future.cn.lumingweihua.R;

public class LocationActivity extends BaseActivity {

	@Override
	protected void initView() {
		// TODO Auto-generated method stub
		setContentView(R.layout.activity_location);

		initTitleBar("位置", Constant.DEFAULT_LEFT_BACK, "导航");
		LocationFragment mapFragment = new LocationFragment();

		mapFragment.setDatas(getIntent().getDoubleExtra("lat", 30.26), getIntent().getDoubleExtra("lon", 120.19));

		getSupportFragmentManager().beginTransaction()
				.add(R.id.fragment_container, mapFragment).commit();
		
		
	}

	@Override
	protected void initData() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void processClick(View v) {
		// TODO Auto-generated method stub
        switch (v.getId()) {
            case R.id.bt_title_right:
                CommonUtils.navi(context, getIntent().getDoubleExtra("lat", 30.26)+"", getIntent().getDoubleExtra("lon", 120.19)+"", "");
                break;

            default:
                break;
        }
    }

}
